﻿@{
var sites = PageData["sites"] ; 
}
@if(sites.Count>0){ foreach(var site in sites){
                        <ul>
                            <li><a href='@Href("~/Action/DeleteSite/"+site.id)'>Delete</a>&nbsp;&nbsp;
                            <a href='@Href("~/Action/EditSite/"+site.id)'>Edit</a>&nbsp;&nbsp;
                            <a href='@Href("~/Action/ListPasswordsBySite/"+@site.id)' style="@if(site.online==0){<text>color:Red;</text>}else{<text>color:Green;</text>}">@site.sitename</a></li>
                        </ul>
                        } }else{ <span>No site defined yet</span> }